package com.Entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Club entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "club", catalog = "monitor")
public class Club implements java.io.Serializable {

	// Fields

	private Integer clubCategoryId;
	private String clubName;
	private Integer clubFlag;//改为clubFlag，意在标识圈子是同龄圈还是医院圈；预定——值为0时代表同龄圈，值为1时代表医院圈。
	private Date clubCreateTime;

	// Constructors

	/** default constructor */
	public Club() {
	}

	/** full constructor */
	public Club(String clubName, Integer clubFlag, Date clubCreateTime) {
		this.clubName = clubName;
		this.clubFlag = clubFlag;
		this.clubCreateTime = clubCreateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "clubCategoryId", unique = true, nullable = false)
	public Integer getClubCategoryId() {
		return this.clubCategoryId;
	}

	public void setClubCategoryId(Integer clubCategoryId) {
		this.clubCategoryId = clubCategoryId;
	}

	@Column(name = "clubName", length = 30)
	public String getClubName() {
		return this.clubName;
	}

	public void setClubName(String clubName) {
		this.clubName = clubName;
	}

	@Column(name = "clubFlag")
	public Integer getClubFlag() {
		return this.clubFlag;
	}

	public void setClubFlag(Integer clubFlag) {
		this.clubFlag = clubFlag;
	}

	@Column(name = "clubCreateTime", length = 19)
	public Date getClubCreateTime() {
		return this.clubCreateTime;
	}

	public void setClubCreateTime(Date clubCreateTime) {
		this.clubCreateTime = clubCreateTime;
	}

}